package com.tianji.contract.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author 陈佳
 * @since 2024-10-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="VisitorAppointment对象", description="")
public class VisitorAppointment extends Model<VisitorAppointment> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "预约ID")
      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "访客姓名")
    private String visitorName;

    @ApiModelProperty(value = "访客联系电话")
    private String phone;

    @ApiModelProperty(value = "被访问的公司名称")
    private String companyName;

    @ApiModelProperty(value = "预约访问时间")
    private LocalDateTime visitTime;

    @ApiModelProperty(value = "放行物品信息（JSON格式）")
    private String items;

    @ApiModelProperty(value = "二维码路径或数据")
    private String qrCode;

    @ApiModelProperty(value = "预约状态")
    private String status;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createdAt;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updatedAt;


    @Override
    public Serializable pkVal() {
        return this.id;
    }

}
